import { IsEnum, IsNotEmpty } from 'class-validator'
import i18n from '@/i18n'
import { DomainModel } from '@apps/meta/domain/model'
import { ApiProperty } from '@nestjs/swagger'

export class MetaResourceModelListByModuleDto {
  @ApiProperty({
    description: i18n.t('app-meta.dto.meta-resource-model-list-by-module.12151142-0'),
    enum: DomainModel.ApiPropertyEnum.MetaResourceModelType,
  })
  @IsNotEmpty()
  @IsEnum(DomainModel.MetaResourceModelType)
  type: DomainModel.MetaResourceModelType

  @ApiProperty({ description: i18n.t('app-meta.dto.meta-resource-model-list-by-module.12151142-1') })
  @IsNotEmpty()
  resourceModuleName: string

  @ApiProperty({ description: i18n.t('app-meta.dto.meta-resource-model-list-by-module.12151142-2') })
  @IsNotEmpty()
  resourceModuleActionName: string

  @ApiProperty({ description: i18n.t('app-meta.dto.meta-resource-model-list-by-module.12151142-3') })
  @IsNotEmpty()
  platform: string
}
